# include "mythread.h"

void mythread(int thread_id)
 {
     int i, n, j;
     n = (thread_id % 2 == 0)? 10: 15;
     for (i = 0; i < n; i++)
     {
         printf("This is message %d of thread #%d.\n", i, thread_id);
         for (j = 0; j < MAX; j++);
     }
 }
